<script>
export default {
  created() {
    // 调用API从本地缓存中获取数据
    const logs = wx.getStorageSync("logs") || [];
    logs.unshift(Date.now());
    wx.setStorageSync("logs", logs);
  },
};
</script>

<style>
/**app.wxss**/
page {
  /* font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif */
}

.flex-container {
  margin: 0 auto;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}
.clearfix:after {
  content: "Microsoft YaHei";
  display: block;
  height: 0;
  clear: both;
  visibility: hidden;
}
div,
p,
input,
a {
  box-sizing: border-box;
}
.slice {
  width: 750rpx;
  height: 20rpx;
  background: #f0f0f0;
  margin: 30rpx 0;
}
.row {
  display: flex;
  align-items: center;
}
.col {
  display: flex;
  align-items: center;
  flex-direction: column;
}
.between {
  justify-content: space-between;
}
.start-item {
  align-items: flex-start;
}
.end-item {
  justify-content: flex-end;
}
.fixed-bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 10;
  font-size: 0px;
}
.for-iphonex {
  height: 68rpx;
  width: 750rpx;
  background: #fff;
}
</style>
